import { getRequest,postBodyRequest,postRequest,getRequestEncode } from "../../libs/axios";

export const queryUsersByPage = (params) => {
	return getRequest('/rancheng-auth/user/queryUsersByPage',params)
}

export const saveOrUpdateUser = (params) => {
	return postBodyRequest('/rancheng-auth/user/saveOrUpdateUser',params)
}

export const deleteUsers = (params) => {
	return postBodyRequest('/rancheng-auth/user/deleteUsers',params)
}

export const getRoleTree = (params) => {
	return getRequest('/rancheng-auth/role/queryRoleTree',params)
}

export const saveUserRole = (params) => {
	return postBodyRequest('/rancheng-auth/user/saveUserRole',params)
}

export const queryAllotedRole = (params) => {
	return postBodyRequest('/rancheng-auth/user/queryAllotedRole',params)
}